class Person:
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def show(self):
        print(f'大家好，我叫：{self.name},我今年：{self.age}岁')

#student 继承了person类
class Student(Person):
    def __init__(self,name,age,stuno):
        super().__init__(name,age)
        self.stuno=stuno

#doctor 也继承了Person
class Doctor(Person):
    def __init__(self,name,age,department):
        super().__init__(name,age)
        self.department=department

stu=Student('陈妹妹','20','10001')
stu.show()
doctor=Doctor('张媛媛','32','外科')
doctor.show()









